package com.lanchetech.dao;

import com.lanchetech.bean.request.OrderAddressPageReq;import com.lanchetech.entity.OrderAddress;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface OrderAddressMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderAddress record);

    int insertSelective(OrderAddress record);

    OrderAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderAddress record);

    int updateByPrimaryKey(OrderAddress record);

    OrderAddress findOneByOrderId(@Param("orderId") Long orderId);

    List<OrderAddress> findAllByOrderIds(@Param("orderIds") List<Long> orderIds);

    List<OrderAddress> findAllByPhoneAndName(OrderAddressPageReq req);

    int deleteByOrderId(@Param("orderId") Long orderId);
}